<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>AdminLTE 2 | Starter</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="/bower_components/font-awesome/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="/bower_components/Ionicons/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="/dist/css/AdminLTE.min.css">
  <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
        page. However, you can choose any other skin. Make sure you
        apply the skin class to the body tag so the changes take effect. -->
  <link rel="stylesheet" href="/dist/css/skins/skin-blue.min.css">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->

  <!-- Google Font -->
  <link rel="stylesheet"
        href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<!--
BODY TAG OPTIONS:
=================
Apply one or more of the following classes to get the
desired effect
|---------------------------------------------------------|
| SKINS         | skin-blue                               |
|               | skin-black                              |
|               | skin-purple                             |
|               | skin-yellow                             |
|               | skin-red                                |
|               | skin-green                              |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed                                   |
|               | layout-boxed                            |
|               | layout-top-nav                          |
|               | sidebar-collapse                        |
|               | sidebar-mini                            |
|---------------------------------------------------------|
-->
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <%- include('./header.ejs') %>
 
  <%- include('./menu.ejs') %>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        添加产品
        <small>Optional description</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Level</a></li>
        <li class="active">Here</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content container-fluid">

      <div class="box box-info">
        <!-- form start -->
        <form class="form-horizontal" action="/pro/addAction" method="POST">
          <div class="box-body">
            <div class="form-group">
              <label for="proname" class="col-sm-2 control-label">产品名称</label>

              <div class="col-sm-10">
                <input type="text" name="proname" class="form-control" id="proname" placeholder="产品名称">
              </div>
            </div>
            <div class="form-group">
                <label for="type" class="col-sm-2 control-label">产品分类</label>
  
                <div class="col-sm-10">
                  <input type="text" name="type" class="form-control" id="type" placeholder="产品分类">
                </div>
              </div>
            <div class="form-group">
              <label for="brand" class="col-sm-2 control-label">产品品牌</label>

              <div class="col-sm-10">
                <input type="text" name="brand" class="form-control" id="brand" placeholder="产品品牌">
              </div>
            </div>
            <div class="form-group">
              <label for="brandimg" class="col-sm-2 control-label">品牌图标</label>

              <div class="col-sm-10">
                <input type="text" name="brandimg" class="form-control" id="brandimg" placeholder="品牌图标">
              </div>
            </div>
            <div class="form-group">
              <label for="proimg" class="col-sm-2 control-label">产品图片</label>

              <div class="col-sm-10">
                <input type="text" name="proimg" class="form-control" id="proimg" placeholder="产品图片地址">
              </div>
            </div>
            <div class="form-group">
              <label for="price" class="col-sm-2 control-label">产品价格</label>

              <div class="col-sm-10">
                <input type="text" name="price" class="form-control" id="price" placeholder="产品价格">
              </div>
            </div>
            <div class="form-group">
              <label for="stock" class="col-sm-2 control-label">产品库存</label>

              <div class="col-sm-10">
                <input type="text" name="stock" class="form-control" id="stock" placeholder="产品库存">
              </div>
            </div>
            <div class="form-group">
              <label for="sales" class="col-sm-2 control-label">产品销量</label>

              <div class="col-sm-10">
                <input type="text" name="sales" class="form-control" id="sales" placeholder="产品销量">
              </div>
            </div>
            <div class="form-group">
              <label for="rating" class="col-sm-2 control-label">产品评分</label>

              <div class="col-sm-10">
                <input type="text" name="rating" class="form-control" id="rating" placeholder="产品评分">
              </div>
            </div>
            <div class="form-group">
              <label for="flag" class="col-sm-2 control-label">是否推荐</label>

              <div class="col-sm-10">
                <input type="radio" name="flag" value="1"> 推荐
                <input type="radio" name="flag" value="0"> 不推荐
              </div>
            </div>
            <div class="form-group">
              <label for="note" class="col-sm-2 control-label">产品简介</label>

              <div class="col-sm-10">
                <input type="text" name="note" class="form-control" id="note" placeholder="产品简介">
              </div>
            </div>
            <div class="form-group">
              <label for="detail" class="col-sm-2 control-label">产品详情</label>

              <div class="col-sm-10">
                <textarea name="detail" id="detail" class="form-control" placeholder="产品详情"></textarea>
              </div>
            </div>
          </div>
          <!-- /.box-body -->
          <div class="box-footer">
            <div class="form-group ">
                <label for="detail" class="col-sm-2 control-label"></label>
  
                <div class="col-sm-10">
                    <button type="submit" class="btn btn-info">提交</button>
                </div>
              </div>
          </div>
          <!-- /.box-footer -->
        </form>
      </div>

    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  <%- include('./footer.ejs') %>

  <%- include('./sidebar.ejs') %>
  <!-- /.control-sidebar -->
  <!-- Add the sidebar's background. This div must be placed
  immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 3 -->
<script src="/bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="/dist/js/adminlte.min.js"></script>

<!-- Optionally, you can add Slimscroll and FastClick plugins.
     Both of these plugins are recommended to enhance the
     user experience. -->
</body>
</html>